function! utils#checks#CheckAnnotations(path) abort
    let path = strlen(a:path) == 0 ? '.' : a:path

    if !exists('g:annotations')
        let g:annotations = ['TODO', 'FIXME', 'OPTIMIZE', 'HACK', 'REVIEW']
    endif
    let annotation_text = join(g:annotations, '|')

    if isdirectory(path)
        let pattern = path.'/**/*'
    else
        let pattern = path
    endif

    execute 'vimgrep /\v<('.annotation_text.')>/ '.pattern
endfunction
